/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: JokeService
 * Author:   臧浩鹏
 * Date:     2018/8/6 9:20
 * Description: joke的service接口
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.etc.service;

import com.etc.common.ServerResponse;
import com.etc.entity.Joke;
import com.etc.vo.JokeVo;
import com.github.pagehelper.PageInfo;

/**
 * 〈一句话功能简述〉<br> 
 * 〈joke的service接口〉
 *
 * @author 臧浩鹏
 * @create 2018/8/6
 * @since 1.0.0
 */
public interface JokeService {

    public ServerResponse<PageInfo> insertJoke(Joke joke, int pageNum, int pageSize);

    public ServerResponse deleteJoke(Integer jid);

    public ServerResponse selectByJcategory(Integer uid, Integer jcategory, Integer pageNum, Integer pageSize);

    public ServerResponse judgeAndHandleAttitude(Integer jid, Integer attitude, Integer uid);

    public ServerResponse checkJstatus(Integer jid,Integer status);

    public ServerResponse<JokeVo> selectOneByjid(Integer jid);

    public ServerResponse selectByStatus(Integer Status, Integer pageNum, Integer pageSize);

    public ServerResponse deleteJokeByBatch(String[] jids);
}
